# -*- coding: utf-8 -*-
from httper import HTTP


__author__ = '夜空'

class YuShuBook:
    isbn_url='http://t.yushu.im/v2/book/isbn/{}'
    keyword_url='http//t.yushu.im/v2/book/search?q={}&count={}%start={}'
    @classmethod

    def search_by_isbn(self,isbn):
        url = YuShuBook.isbn_url.format(isbn)
        pass

    @classmethod
    def search_by_keyword(self,keyword,count=15,start=0):
        url = YuShuBook.keyword_url.format(keyword,count,start)
        result = HTTP.get(url)
        return result